//
//  XHud.h
//  Hai
//
//  Created by 千金贷 on 16/4/27.
//  Copyright © 2016年 wangzijian. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "MBProgressHUD.h"
@interface XHud : NSObject

/**
 * 创建hud
 *
 * @param view hud的父视图，一半用self.view
 *
 */

+ (MBProgressHUD *)createHUDInView:(UIView *)view;

/**
 * 创建hud
 *
 */
+ (MBProgressHUD *)createHUDInwindow;


/**
 * 显示带菊花的加载hud
 *
 */
+ (void)showHud:(MBProgressHUD *)hud WithWaitigText:(NSString *)text;

/**
 * 显示提示信息，0.7秒自动消失
 *
 */
+ (void)showHud:(MBProgressHUD *)hud WithTipText:(NSString *)text;

@end
